package com.example.lib_base.http

import retrofit2.Retrofit

object NotWorkFactory {
    lateinit var retrofit:Retrofit
    fun getRetrofit(type: HttpType):Retrofit{
        retrofit = when (type) {
            HttpType.NONE -> {
                NoneRetrofitImpl().createRetrofit()
            }

            HttpType.TOKEN -> {
                TokenRetrofitImpl().createRetrofit()
            }
        }
        return retrofit
    }
}